/**
 * RoleResourcePermissionMapperExt
 * Copyright © 2015 - 2017
 * All rights reserved.
 * -----------------------------------
 * 2018-05-17  Created
 */
package com.lzy.cloud.permission.mapper;

import com.lzy.cloud.permission.dtos.RoleResourcePermissionDto;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.util.List;

@Resource
public interface RoleResourcePermissionMapperExt extends RoleResourcePermissionMapper {

    List<RoleResourcePermissionDto> selectList(@Param("param") RoleResourcePermissionDto roleResourcePermissionDto);

    RoleResourcePermissionDto selectRoleResourcePermission(@Param("param") RoleResourcePermissionDto roleResourcePermissionDto);

    List<RoleResourcePermissionDto> selectListByRoleIds(@Param("roleIds") String roleIds);

    int deleteByKey(@Param("param") RoleResourcePermissionDto roleResourcePermissionDto);
}